import axios from "@/common/axios";
import { API_URL } from "@/common/constants";

export const queryCarryEventList = async (json) => {
  let { data } = await axios.post(API_URL + "rCarryEventApi/queryCarryEventList", json);
  return data;
};
export const updateAudit = async (json) => {
  let { data } = await axios.post(API_URL + "rCarryEventApi/updateAudit", json);
  return data;
};

export const updateCarryEvent = async (json) => {
  let { data } = await axios.post(API_URL + "rCarryEventApi/updateCarryEvent", json);
  return data;
};


export const addCarryEvent = async (json) => {
  let { data } = await axios.post(API_URL + "rCarryEventApi/addCarryEvent", json);
  return data;
};



export const delCarryEvent = async (json) => {
  let { data } = await axios.post(API_URL + "rCarryEventApi/delCarryEvent", json);
  return data;
};


export const importExcel = async (formData) => {
  let { data } = await axios.post(API_URL + "rCarryEventApi/importExcel", formData, {
    headers: {
      'Content-Type': 'multipart/form-data;charset=utf-8'
    }
  });
  return data;

}


export const uploadFile = async (formData) => {
  let { data } = await axios.post(API_URL + "rCarryEventApi/uploadFile", formData, {
    headers: {
      'Content-Type': 'multipart/form-data;charset=utf-8'
    }
  });
  return data;

}